package com.xu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 工作时间配置明细表
 * </p>
 *
 * @author 许乾伟
 * @since 2024-12-25 10:04:28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_work_time_config_detail")
public class SysWorkTimeConfigDetail {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 配置表id
     */
    @TableField("config_id")
    private Long configId;

    /**
     * 类型(1.调休日;2.补班日)
     */
    @TableField("date_type")
    private Integer dateType;

    /**
     * 年
     */
    @TableField("year")
    private Integer year;

    /**
     * 月
     */
    @TableField("month")
    private Integer month;

    /**
     * 日
     */
    @TableField("day")
    private Integer day;

    /**
     * 日期
     */
    @TableField("date")
    private LocalDate date;

    public static final String ID = "id";

    public static final String CONFIG_ID = "config_id";

    public static final String DATE_TYPE = "date_type";

    public static final String YEAR = "year";

    public static final String MONTH = "month";

    public static final String DAY = "day";

    public static final String DATE = "date";
}
